package com.android.planegame.controller;

import java.util.ArrayList;

import android.graphics.Canvas;
import android.view.View;

import com.android.planegame.model.EnemyPlane;
import com.android.planegame.tool.Constants;

public class EnemyPlaneManager {

	private static ArrayList<EnemyPlane> enemyPlanes;

	public static ArrayList<EnemyPlane> getEnemyPlanes() {
		return enemyPlanes;
	}

	public EnemyPlaneManager(View view) {
		enemyPlanes = new ArrayList<EnemyPlane>();
		for (int i = 0; i < Constants.EnemyPlane_NUM; i++) {
			enemyPlanes.add(new EnemyPlane(view));
		}
	}

	public void drawEnemyPlane(Canvas canvas) {
		for (EnemyPlane enemyPlane : enemyPlanes) {
			enemyPlane.drawEnemyPlane(canvas);
		}
	}
}
